package com.nyt.report.service;

import com.nyt.report.model.ApiUser;
import com.nyt.report.model.StationConfig;
import com.nyt.report.model.SysApiStation;

import java.util.List;

public interface CacheService {

//    public StationConfig queryStationConfig(String accesskey);
//
//    public Boolean exitRequestid(String requestid, String ip);


    public Object save(String cache, Object key, Object val);

    public Object update(String cache, Object key, Object val);

    public void delete(String cache, Object key);

    public Object search(String cache, Object key, Class clazz);

    public ApiUser queryApiUser(String accesskey);

    public SysApiStation getStationWhitelist(String IPAddr);

}
